package com.mouxidea;

public class Record {

	private String taPeriod;
	private String dsiKeyId;
	private String dsiTargetName;
	private String dsiDescr;
	private String dsiTableKey;
	private double maxUtilizationH;
	private double maxInUtilizationF;
	private double maxOutUtilizationF;
	private double avgUtilizationH;
	private double avgInUtilizationF;
	private double avgOutUtilizationF;
	private double utilThreshold;
	
	
	public String getTaPeriod() {
		return taPeriod;
	}
	public void setTaPeriod(String taPeriod) {
		this.taPeriod = taPeriod;
	}
	public String getDsiKeyId() {
		return dsiKeyId;
	}
	public void setDsiKeyId(String dsiKeyId) {
		this.dsiKeyId = dsiKeyId;
	}
	public String getDsiTargetName() {
		return dsiTargetName;
	}
	public void setDsiTargetName(String dsiTargetName) {
		this.dsiTargetName = dsiTargetName;
	}
	public String getDsiDescr() {
		return dsiDescr;
	}
	public void setDsiDescr(String dsiDescr) {
		this.dsiDescr = dsiDescr;
	}
	public String getDsiTableKey() {
		return dsiTableKey;
	}
	public void setDsiTableKey(String dsiTableKey) {
		this.dsiTableKey = dsiTableKey;
	}
	public double getMaxUtilizationH() {
		return maxUtilizationH;
	}
	public void setMaxUtilizationH(double maxUtilizationH) {
		this.maxUtilizationH = maxUtilizationH;
	}
	public double getMaxInUtilizationF() {
		return maxInUtilizationF;
	}
	public void setMaxInUtilizationF(double maxInUtilizationF) {
		this.maxInUtilizationF = maxInUtilizationF;
	}
	public double getMaxOutUtilizationF() {
		return maxOutUtilizationF;
	}
	public void setMaxOutUtilizationF(double maxOutUtilizationF) {
		this.maxOutUtilizationF = maxOutUtilizationF;
	}
	
	public double getAvgUtilizationH() {
		return avgUtilizationH;
	}
	public void setAvgUtilizationH(double avgUtilizationH) {
		this.avgUtilizationH = avgUtilizationH;
	}
	public double getAvgInUtilizationF() {
		return avgInUtilizationF;
	}
	public void setAvgInUtilizationF(double avgInUtilizationF) {
		this.avgInUtilizationF = avgInUtilizationF;
	}
	public double getAvgOutUtilizationF() {
		return avgOutUtilizationF;
	}
	public void setAvgOutUtilizationF(double avgOutUtilizationF) {
		this.avgOutUtilizationF = avgOutUtilizationF;
	}
	public double getUtilThreshold() {
		return utilThreshold;
	}
	public void setUtilThreshold(double utilThreshold) {
		this.utilThreshold = utilThreshold;
	}
	
	
	public double getValueByKey(String key)
	{
		double result = 0;
		if (key.equals(Config.AVG_IN_UTIL_F))
		{
			result = this.avgInUtilizationF;
		}
		else if (key.equals(Config.AVG_OUT_UTIL_F))
		{
			result = this.avgOutUtilizationF;
		}
		else if (key.equals(Config.AVG_UTIL_H))
		{
			result = this.avgUtilizationH;
		}
		else if (key.equals(Config.MAX_IN_UTIL_F))
		{
			result = this.maxInUtilizationF;
		}
		else if (key.equals(Config.MAX_OUT_UTIL_F))
		{
			result = this.maxOutUtilizationF;
		}
		else if (key.equals(Config.MAX_UTIL_H))
		{
			result = this.maxUtilizationH;
		}
		
		return result;
	}
	
	
}
